<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>认证中心</title>

<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link href="css/bootstrap.min.css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->

</head>

<body>
	<div class="container">
		<h2>确认授权</h2>

		<p>是否允许 <span th:text="${authorizationRequest.clientId}"></span> 使用你的账号访问
			 <span th:text="${authorizationRequest.redirectUri}"></span> ，并允许网站进行以下操作：
			<span th:text="${authorizationRequest.scope}"></span></p>
		<form id="confirmationForm" name="confirmationForm"
			action="../oauth/authorize" method="post">
			<input name="user_oauth_approval" value="true" type="hidden" /> <input
				type="hidden" id="csrf_token" name="${_csrf.parameterName}"
				value="${_csrf.token}" />
			<button class="btn btn-primary" type="submit">授权</button>
		</form>
		<form id="denyForm" name="confirmationForm"
			action="../oauth/authorize" method="post">
			<input name="user_oauth_approval" value="false" type="hidden" /> <input
				type="hidden" id="csrf_token" name="${_csrf.parameterName}"
				value="${_csrf.token}" />
			<button class="btn btn-primary" type="submit">取消</button>
		</form>
	</div>
</body>
</html>
